<include file="Public/head" />
</head>
<include file="Public/common_header" />
<if condition="$total_car  gt '1' ">
    <div class="presentation">
        <span><a class="leftBtn" style="display: none"></a><a class="rightBtn"></a></span>
        <div>
            <ul class="clearfix">
                <foreach name="car_id_list" item="car" key="key">
                    <li class= <?php echo $car_id == $car['car_id'] ? "cuurent" : ''; ?>><a href="/Car/report/car_id/{$car.car_id}" >报告<?php echo $total_car - $key;?></a></li>
                </foreach>
            </ul>
        </div>
    </div>
</if>
<div class="mianR" style="margin: 0 auto;float: none;">
   {$report}
   <!--
   <div class="testing">
		<h4>协议详情</h4>
		<ul>
		  <li class="agreement clearfix">
		    <span>过户限制</span>
		    <em><?php echo C('TRANSFER_LIMIT.'.$car['transfer_limit']);?></em>
		    <span>建议价</span><em><?php echo format_money($car['suggest_min_price']);?> - <?php echo format_money($car['suggest_max_price']);?></em>
		    <span>保留价</span><em><?php echo format_money($car['reserve_price']);?>元</em>
		  </li>
		  <li class="agreement1 clearfix">
		  	<span><img src="{$procedure.protocol_pic}"><em>协议照片点击看大图</em></span>
		  </li>
		</ul>
	</div>
	-->  
   <div class="yongBtn1">
     <input type="button" value="关闭" onclick="window.close();" class="queding">
   </div>
</div>
<div class="pageBeijing"></div>
<div class="xieyi"><span>×</span><img src="#" /></div>
</body>
<script type="text/javascript">
    $(document).ready(function() {

        $(".testing ul .agreement1 span").click(function(){
            var Img=$(this).find("img").attr("src").split("@");
            $(".xuanzhuan").fadeIn();
            $(".fork").fadeIn();
            $(".pageBeijing").css("display","block");
            $(".xie-loading").fadeIn();

            $(".sunbox-alret img").attr("src",Img[0]).get(0).onload=function(){
                $(".sunbox-alret").fadeIn();
                $(".sunbox-alret").rotate(0);
                $(".xie-loading").fadeOut();
                $(".sunbox-alret").css("top",$(window).scrollTop());
                $(".sunbox-alret").css({
                    "marginTop":100,
                    "marginLeft":-$(".sunbox-alret").outerWidth()/2
                })
            };
        })
        var num = 0;
        $(function(){
            $(".xuanzhuan").click(function(){
                num ++;
                $(".sunbox-alret").rotate(90*num);
            })
        })

        $(".fork").click(function(){
            $(".pageBeijing").css("display","none");
            $(".sunbox-alret").fadeOut();
            $(".xuanzhuan").fadeOut();
            $(".fork").fadeOut();
            $(".xie-loading").fadeOut();
            $(".sunbox-alret img").attr("src","");
            num = 0;
        })

        // 历史报告切换
        $(function(){
            $(".presentation span").hide();
            var oLiNum=$(".presentation ul li").length;
            var oLiW=$(".presentation ul li").width()*oLiNum;
            var num=0;
            if(oLiW>920){
                $(".presentation span").show();
            }else{
                $(".presentation span").hide();
            }
            $(".presentation span .leftBtn").hide();

            $(".presentation span .rightBtn").click(function(){
                $(".presentation span .leftBtn").show()
                num++;
                $(".presentation ul").animate({
                    "marginLeft":-$(".presentation ul li").width()*num+"px"
                });
                var wMin=-(oLiNum-9)*$(".presentation ul li").width();
                if(wMin==-$(".presentation ul li").width()*num){
                    $(".presentation span .rightBtn").hide();
                }
            })
            $(".presentation span .leftBtn").click(function(){
                num--;
                $(".presentation ul").animate({
                    "marginLeft":-$(".presentation ul li").width()*num+"px"
                });
                $(".presentation span .rightBtn").show();
                if(-$(".presentation ul li").width()*num>=0){
                    $(".presentation span .leftBtn").hide();

                }
            })
            $(".presentation ul li").click(function(){
                $(".presentation ul li").removeClass("cuurent");
                $(this).addClass("cuurent");
                var index=$(".presentation ul li").index(this);
                $(".presentation-cont .jianCeBox").eq(index).show().siblings().hide();
            })
        })


    });
</script>
</html>